{extends file="../acp.html"}

{block name="title"}{$head_title}{/block}
{block name="content"}
<form id="J_FormArticle" action="" method="post">
<div class="formitems inline">  
    <label class="fi-name"><span class="colorRed">*</span>标题：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" class="xlarge" name="project_report_name" id="project_report_name" value="{$info.project_report_name}">
		<span class="fi-help-text hide"></span>
    </div>  
</div> 
<div class="formitems inline">
    <label class="fi-name"><span class="colorRed">*</span>项目申报类型：</label>
    <div class="form-controls">
        <select name="project_report_type_id" id="project_report_type_id">
            <option value="">--请选择--</option>
            {foreach from = $project_report_type_list item = type}
            <option value="{$type.type_id}"{if $info.project_report_type_id == $type.type_id}selected{/if}>{$type.type_name}</option>
            {/foreach}
        </select>
		<span class="fi-help-text hide"></span>
    </div>
</div>
<!--<div class="formitems inline">  -->
    <!--<label class="fi-name">作者：</label>  -->
    <!--<div class="form-controls">  -->
        <!--<input type="text" placeholder="" name="author" id="author"> -->
    <!--</div>  -->
<!--</div> -->
<!--<div class="formitems inline">  -->
    <!--<label class="fi-name">来源：</label>  -->
    <!--<div class="form-controls">  -->
        <!--<input type="text" placeholder="" name="article_source" id="article_source"> -->
    <!--</div>  -->
<!--</div> -->

    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>地区选择：</label>
        <div class="form-controls">
            <select name="province_id" id="province_id">
                <option value="">--选择省份--</option>
                {foreach from=$province_list item=item}
                <option value="{$item.province_id}"{if $info.province_id == $item.province_id}selected{/if}>{$item.province_name}</option>
                {/foreach}
            </select>
            <select name="city_id" id="city_id">
                <option value="">--选择城市--</option>
                {foreach from=$city_list item=item}
                <option value="{$item.city_id}"{if $info.city_id == $item.city_id}selected{/if}>{$item.city_name}</option>
                {/foreach}
            </select>
            <select name="area_id" id="area_id">
                <option value="">--选择地区--</option>
                {foreach from=$area_list item=item}
                <option value="{$item.area_id}"{if $info.area_id == $item.area_id}selected{/if}>{$item.area_name}</option>
                {/foreach}
            </select>
        </div>
    </div>


<div class="formitems inline">  
    <label class="fi-name">排序：</label>  
    <div class="form-controls">  
        <input type="text" placeholder="" style="width:45px;" name="serial" id="serial" value="{$info.serial}">
    </div>  
</div>

<div class="formitems inline">  
    <label class="fi-name">显示：</label>  
    <div class="form-controls">  
        <div class="radio-group">  
            <label><input type="radio" name="isuse" value="1" {if $info.isuse ==1}checked="checked"{/if} />是</label>
            <label><input type="radio" name="isuse" value="0" {if $info.isuse ==0}checked="checked"{/if} />否</label>
        </div>  
    </div>  
</div>

    {upload_image_widget($pic)}

<!--<div class="formitems inline">  -->
    <!--<label class="fi-name">页面关键字：</label>  -->
    <!--<div class="form-controls">  -->
        <!--<input type="text" placeholder="" class="xlarge" name="keywords" id="keywords"> -->
        <!--<span style="color:#ddd;">多个用"|"分隔</span>-->
    <!--</div>  -->
<!--</div> -->
<!--<div class="formitems inline">  -->
    <!--<label class="fi-name">页面描述：</label>  -->
    <!--<div class="form-controls">  -->
        <!--<textarea name="description" id="description"></textarea>   -->
    <!--</div>  -->
<!--</div> -->
    <div class="formitems inline">
        <label class="fi-name"><span class="colorRed">*</span>文章内容：</label>
        <div class="form-controls">
            <script id="content" name="contents" type="text/plain">{$info.contents}</script>
            <span class="fi-help-text error"></span>
        </div>
    </div>
<div class="formitems inline">  
    <label class="fi-name"></label>  
    <div class="form-controls">  
		<input type="hidden" name="act" value="{$act}" />
		<input type="hidden" name="id" value="{$info.project_report_id}" />
        <button type="submit" class="btn btn-blue"><i class="gicon-check white"></i>保存</button>
    </div>  
</div> 
</form>
{/block} 

{block name="js"}
<!-- 编辑器 -->
<script type="text/javascript" charset="utf-8" src="__UE__/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__UE__/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__UE__/lang/zh-cn/zh-cn.js"></script>
<script src="__ACPJS__/AcpServiceProviders/linkage.js?version={$version}"></script>
<script type="text/javascript" src="__JS__/jquery/ajaxupload.3.5.js?version={$version}"></script>
<script>
    UE.getEditor('content',{
        initialFrameWidth : 600,
        initialFrameHeight: 400,
        autoHeightEnabled: false,
        autoFloatEnabled:false
    });
</script>
{/block} 

{block name="css"}
<link rel="stylesheet" href="/Public/Css/acp/AcpArticle/add_article.css"  type="text/css"/>
{/block}
